<!DOCTYPE html>
<html>
    <head>
        <title>我爱席兆凡</title>
        <meta charset="utf-8">
        <style>
            *{
                margin: 0;
                padding: 0;
            }
            html,body{
                width: 100%;
                height: 100%;
            }
            body{
                background-color: pink;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
            }
            @keyframes myAnim {
                0%{
                    transform: rotate(45deg) scale(.6);
                }
                /*25%{
                    transform: rotate(45deg) scale(1);
                }
                50%{
                    transform: rotate(45deg) scale(1.6);
                }
                75%{
                    transform: rotate(45deg) scale(1);
                } */
                100%{
                    transform: rotate(45deg) scale(1);
                }
            }
            .heart{
                width: 200px;
                height: 200px;
                background-color: red;
                position: relative;
                transform: rotate(45deg);
                box-shadow: 0 0 30px red;
                animation: myAnim .5s alternate infinite;
            }
            .heart::before{
                content: "";
                width: 200px;
                height: 100px;
                background-color: red;
                position: absolute;
                left: 0px;
                top: -99px;
                border-radius: 100px 100px 0 0;
                box-shadow: 0 0 30px red;
            }
            .heart::after{
                content: "";
                width: 100px;
                height: 200px;
                background-color: red;
                position: absolute;
                left: -99px;
                top: 0px;
                border-radius: 100px 0 0 100px;
                box-shadow: 0 0 30px red;
            }
        </style>
    </head>
    <body>
        <div class="heart"></div>
    </body>
</html>